package dongnv.poweramp.activity;

import dongnv.poweramp.R;
import dongnv.poweramp.data.SystemManager;
import dongnv.poweramp.screen.HomeScreen;
import dongnv.poweramp.screen.ListSongPlayScreen;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;

public class ListSongPlayActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		HomeActivity.systemManager.setMessageHandlerListSong(createMessageHandle());
		listSongPlayScreen = new ListSongPlayScreen(getApplicationContext(), HomeActivity.systemManager.getListSongAdapter());
		Log.e("", "arr size:" + HomeActivity.systemManager.getArraySongItem().size());
		setContentView(listSongPlayScreen.getView());
	}

	public Handler createMessageHandle() {

		Handler messageHandler = new Handler() {
			public void handleMessage(Message msg) {
				switch (msg.what) {
				default:
					break;
				}
			}
		};
		return messageHandler;
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	private ListSongPlayScreen listSongPlayScreen;
}
